﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Event
{
    public abstract class EventHandler<TEvent> : IEventHandler<TEvent>
       where TEvent : IEvent
    {
        #region Public Methods
        /// <summary>
        /// Handles the specified event.
        /// </summary>
        /// <param name="message">The event to be handled.</param>
        public abstract object Handle(TEvent message);
        #endregion
    }
}
